No need to qsort the pfn array in domu builder.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 8 Sep 2005 17:47:48 +0000 (17:47 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 8 Sep 2005 17:47:48 +0000 (17:47 +0000)
tools/libxc/xc_linux_build.c

index d8bd76d26f06e173e0da13f53c3f34f20be7c68a..1d0f6d738825dab443c5e18c6cbaafa3ac287210 100644 (file)
@@ -283,11 +283,6 @@ static int setup_pg_tables_64(int xc_handle, u32 dom,
 }
 #endif
 
-static int compare (const void * a, const void * b)
-{
-  return ( *(long*)a - *(long*)b );
-}
-
 #ifdef __ia64__
 #include <asm/fpu.h> /* for FPSR_DEFAULT */
 static int setup_guest(int xc_handle,
@@ -501,9 +496,6 @@ static int setup_guest(int xc_handle,
         goto error_out;
     }
 
-    qsort( page_array, nr_pages, sizeof(*page_array), compare );
-
-
     (load_funcs.loadimage)(image, image_size, xc_handle, dom, page_array,
                            &dsi);